import java.util.HashMap;

import ZorkXMLParser.ZorkXMLParser;
import ZorkObjects.*;
import java.util.Scanner;
 
public class Zork
{
    public static void main(String[] argv)
    {
        if(argv.length == 0) {
            System.out.println("The first argument must be the XML file name");
        }
        else
        {
            HashMap XMLConfigMap = new ZorkXMLParser().parse(argv[0]);
            ZorkMap gameMap = new ZorkMap(XMLConfigMap);
            new ZorkGame(gameMap).play();
        }
    }
}
